/*
 *http://www.apache.org/licenses/LICENSE-2.0
 *Copyright (c) 2021 fullset
 *@ClassName LayTree
 *@date 2021/6/29 15:53
 *@author: pangps
 *@Description TODO
 */
package com.fs.orm.layui;

import java.io.Serializable;
import java.util.List;

public class LayTree implements Serializable {

    private static final long serialVersionUID = 1L;

    //节点唯一索引值
    private String id;

    private String parentId;

    //节点标题
    private String title;

    //节点字段名
    private String field;

    //子节点
    private List<LayTree> children;

    //点击节点弹出新窗口对应的 url
    private String href;

    //节点是否初始展开，默认 false
    private Boolean spread;

    //节点是否初始为选中状态（如果开启复选框的话），默认 false
    private Boolean checked;

    //节点是否为禁用状态。默认 false
    private Boolean disabled;

    public LayTree(){

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public List<LayTree> getChildren() {
        return children;
    }

    public void setChildren(List<LayTree> children) {
        this.children = children;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public Boolean getSpread() {
        return spread;
    }

    public void setSpread(Boolean spread) {
        this.spread = spread;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }
}
